package com.baidu.mapapi;

import java.util.ArrayList;

public class MKRoute
{
  public static final int ROUTE_TYPE_DRIVING = 1;
  public static final int ROUTE_TYPE_UNKNOW = 0;
  public static final int ROUTE_TYPE_WALKING = 2;
  ArrayList<ArrayList<GeoPoint>> a;
  private int b;
  private int c;
  private int d;
  private GeoPoint e;
  private GeoPoint f;
  private ArrayList<ArrayList<GeoPoint>> g;
  private ArrayList<MKStep> h;
  private String i;

  String a()
  {
    return this.i;
  }

  void a(int paramInt)
  {
    this.c = paramInt;
  }

  void a(GeoPoint paramGeoPoint)
  {
    this.e = paramGeoPoint;
  }

  void a(String paramString)
  {
    this.i = paramString;
  }

  void a(ArrayList<MKStep> paramArrayList)
  {
    this.h = paramArrayList;
  }

  void b(int paramInt)
  {
    this.d = paramInt;
  }

  void b(GeoPoint paramGeoPoint)
  {
    this.f = paramGeoPoint;
  }

  void b(ArrayList<ArrayList<GeoPoint>> paramArrayList)
  {
    this.g = paramArrayList;
  }

  public ArrayList<ArrayList<GeoPoint>> getArrayPoints()
  {
    return this.g;
  }

  public int getDistance()
  {
    return this.c;
  }

  public GeoPoint getEnd()
  {
    return this.f;
  }

  public int getIndex()
  {
    return this.b;
  }

  public int getNumSteps()
  {
    int j;
    if (this.h != null)
      j = this.h.size();
    while (true)
    {
      return j;
      j = 0;
    }
  }

  public int getRouteType()
  {
    return this.d;
  }

  public GeoPoint getStart()
  {
    return this.e;
  }

  public MKStep getStep(int paramInt)
  {
    MKStep localMKStep;
    if (this.h != null)
      localMKStep = (MKStep)this.h.get(paramInt);
    while (true)
    {
      return localMKStep;
      localMKStep = null;
    }
  }
}